﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Threading;

namespace MonitorPrism_Practice.Mvvm
{
    public abstract class ViewModelBase : BindableBase
    {
        protected ViewModelBase()
        {

        }

        public Dispatcher Dispatcher { get; set; }

        // ReSharper disable once InconsistentNaming
        protected virtual void InvokeOnUIThread(Action action) => Dispatcher.Invoke(action);
    }
}
